<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { getToken } from '@/token'
import qs from 'qs'

export default {
  name: 'App',
  mounted() {
    // debugger
    // const token = getToken()
    // const url = new URL('http://www.baidu.com/?id=234234&t=4#2222')
    // const searchParams = qs.parse(url.search.substr(1))
    // const searchParamsStr = qs.parse({
    //   ...searchParams,
    //   token: token
    // })
    // url.search = qs.stringify(searchParamsStr)
    // console.log(url.href)
  }
}
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #a5e0ff;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
</style>
